import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/earth-home'
  },
  {
    path: '/earth-home',
    name: 'earthHome',
    component: () => import('@/views/earth-home')
  },
  {
    path: '/plan-home',
    name: 'PlanHome',
    component: () => import('@/views/plan-home')
  }
]
const router = new VueRouter({
  mode: 'hash',
  routes
})

export default router
